{# Add a sending domain (dialog body). A 422 re-renders it with ``errors``. #} {% from "components/macros/layout.html" import dialog_title %} {% from "components/macros/form.html" import field, text_input, primary_button %} {% from "components/macros/feedback.html" import error_banner %} {{ dialog_title("Add a sending domain", "Resend lists the DNS records to create at your registrar.") }}
{{ error_banner(errors) }} {% call field("Domain") %}{{ text_input("domain", None, "mail.example.com", required=True, autofocus=True) }}{% endcall %}
{{ primary_button("Add", "submit") }}